//
//  ViewController.m
//  代理模式
//
//  Created by flannery on 2018/12/18.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import "ViewController.h"
#import "Image.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    id<Image> image = [[ProxyImage alloc]initWithFileName:@"test_10mb.jpg"];
    
    //图像将从磁盘加载
    [image display];
    //图像不需要从磁盘加载
    [image display];
}


@end
